package inet.app.vod.object;

public class MenuUIItem {

	private String name;
	private int resId;
	private MenuItemListener listener;
	private boolean isSelect = false;
	private boolean isEffectMenu = true;

	public final static MenuUIItem build(String name, int id,
			MenuItemListener listener) {
		return new MenuUIItem(name, id, listener);
	}

	public MenuUIItem(String name, int id, MenuItemListener listener) {
		this.name = name;
		this.resId = id;
		this.listener = listener;
		this.isSelect = false;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getResId() {
		return resId;
	}

	public void setResId(int resId) {
		this.resId = resId;
	}

	public MenuItemListener getListener() {
		return listener;
	}

	public void setListener(MenuItemListener listener) {
		this.listener = listener;
	}

	public boolean isSelect() {
		return isSelect;
	}

	public void setSelect(boolean isSelect) {
		this.isSelect = isSelect;
	}

	public boolean isEffectMenu() {
		return isEffectMenu;
	}

	public void setEffectMenu(boolean isEffect) {
		isEffectMenu = isEffect;
	}

	public interface MenuItemListener {
		public void onClick();
	}

	@Override
	public String toString() {
		return "MenuUIItem [name=" + name + ", resId=" + resId + ", listener="
				+ listener + ", isSelect=" + isSelect + "]";
	}

}
